﻿using System;
using System.Data;
using System.Data.Common;
using Hxj.Data;
using Hxj.Data.Common;

namespace RecruitStudents.Utility.Model
{

	/// <summary>
	/// 实体类TB_Exam_ResultsPublishList 。(属性说明自动提取数据库字段的描述信息)
	/// </summary>
	[Serializable]
	public class TB_Exam_ResultsPublishList : Entity 
	{
		public TB_Exam_ResultsPublishList():base("TB_Exam_ResultsPublishList") {  
        }

		#region Model
		private string _ExamPlaceNO;
		private string _SpecialityKindsNO;
		private int _ExamLevel;
		private DateTime? _CreatTime;
		private string _SignUpStudentsSpecialityID;
		private string _AllowExamID;
		private string _IsIn;
		private string _IsOut;
		/// <summary>
		/// 
		/// </summary>
		public string ExamPlaceNO
		{
			get{ return _ExamPlaceNO; }
			set
			{
				this.OnPropertyValueChange(_.ExamPlaceNO,_ExamPlaceNO,value);
				this._ExamPlaceNO=value;
			}
		}
		/// <summary>
		/// 
		/// </summary>
		public string SpecialityKindsNO
		{
			get{ return _SpecialityKindsNO; }
			set
			{
				this.OnPropertyValueChange(_.SpecialityKindsNO,_SpecialityKindsNO,value);
				this._SpecialityKindsNO=value;
			}
		}
		/// <summary>
		/// 
		/// </summary>
		public int ExamLevel
		{
			get{ return _ExamLevel; }
			set
			{
				this.OnPropertyValueChange(_.ExamLevel,_ExamLevel,value);
				this._ExamLevel=value;
			}
		}
		/// <summary>
		/// 
		/// </summary>
		public DateTime? CreatTime
		{
			get{ return _CreatTime; }
			set
			{
				this.OnPropertyValueChange(_.CreatTime,_CreatTime,value);
				this._CreatTime=value;
			}
		}
		/// <summary>
		/// 
		/// </summary>
		public string SignUpStudentsSpecialityID
		{
			get{ return _SignUpStudentsSpecialityID; }
			set
			{
				this.OnPropertyValueChange(_.SignUpStudentsSpecialityID,_SignUpStudentsSpecialityID,value);
				this._SignUpStudentsSpecialityID=value;
			}
		}
		/// <summary>
		/// 
		/// </summary>
		public string AllowExamID
		{
			get{ return _AllowExamID; }
			set
			{
				this.OnPropertyValueChange(_.AllowExamID,_AllowExamID,value);
				this._AllowExamID=value;
			}
		}
		/// <summary>
		/// 
		/// </summary>
		public string IsIn
		{
			get{ return _IsIn; }
			set
			{
				this.OnPropertyValueChange(_.IsIn,_IsIn,value);
				this._IsIn=value;
			}
		}
		/// <summary>
		/// 
		/// </summary>
		public string IsOut
		{
			get{ return _IsOut; }
			set
			{
				this.OnPropertyValueChange(_.IsOut,_IsOut,value);
				this._IsOut=value;
			}
		}
		#endregion

		#region Method
		/// <summary>
		/// 获取实体中的主键列
		/// </summary>
		public override Field[] GetPrimaryKeyFields()
		{
			return new Field[] {
				_.ExamPlaceNO,
				_.SpecialityKindsNO,
				_.ExamLevel};
		}
		/// <summary>
		/// 获取列信息
		/// </summary>
		public override Field[] GetFields()
		{
			return new Field[] {
				_.ExamPlaceNO,
				_.SpecialityKindsNO,
				_.ExamLevel,
				_.CreatTime,
				_.SignUpStudentsSpecialityID,
				_.AllowExamID,
				_.IsIn,
				_.IsOut};
		}
		/// <summary>
		/// 获取值信息
		/// </summary>
		public override object[] GetValues()
		{
			return new object[] {
				this._ExamPlaceNO,
				this._SpecialityKindsNO,
				this._ExamLevel,
				this._CreatTime,
				this._SignUpStudentsSpecialityID,
				this._AllowExamID,
				this._IsIn,
				this._IsOut};
		}
		/// <summary>
		/// 给当前实体赋值
		/// </summary>
		public override void SetPropertyValues(IDataReader reader)
		{
			this._ExamPlaceNO = DataUtils.ConvertValue<string>(reader["ExamPlaceNO"]);
			this._SpecialityKindsNO = DataUtils.ConvertValue<string>(reader["SpecialityKindsNO"]);
			this._ExamLevel = DataUtils.ConvertValue<int>(reader["ExamLevel"]);
			this._CreatTime = DataUtils.ConvertValue<DateTime?>(reader["CreatTime"]);
			this._SignUpStudentsSpecialityID = DataUtils.ConvertValue<string>(reader["SignUpStudentsSpecialityID"]);
			this._AllowExamID = DataUtils.ConvertValue<string>(reader["AllowExamID"]);
			this._IsIn = DataUtils.ConvertValue<string>(reader["IsIn"]);
			this._IsOut = DataUtils.ConvertValue<string>(reader["IsOut"]);
		}
		/// <summary>
		/// 给当前实体赋值
		/// </summary>
		public override void SetPropertyValues(DataRow row)
		{
			this._ExamPlaceNO = DataUtils.ConvertValue<string>(row["ExamPlaceNO"]);
			this._SpecialityKindsNO = DataUtils.ConvertValue<string>(row["SpecialityKindsNO"]);
			this._ExamLevel = DataUtils.ConvertValue<int>(row["ExamLevel"]);
			this._CreatTime = DataUtils.ConvertValue<DateTime?>(row["CreatTime"]);
			this._SignUpStudentsSpecialityID = DataUtils.ConvertValue<string>(row["SignUpStudentsSpecialityID"]);
			this._AllowExamID = DataUtils.ConvertValue<string>(row["AllowExamID"]);
			this._IsIn = DataUtils.ConvertValue<string>(row["IsIn"]);
			this._IsOut = DataUtils.ConvertValue<string>(row["IsOut"]);
		}
		#endregion

		#region _Field
		/// <summary>
		/// 字段信息
		/// </summary>
		public class _
		{
			/// <summary>
			/// * 
			/// </summary>
			public readonly static Field All = new Field("*","TB_Exam_ResultsPublishList");
			/// <summary>
			/// 
			/// </summary>
			public readonly static Field ExamPlaceNO = new Field("ExamPlaceNO","TB_Exam_ResultsPublishList","ExamPlaceNO");
			/// <summary>
			/// 
			/// </summary>
			public readonly static Field SpecialityKindsNO = new Field("SpecialityKindsNO","TB_Exam_ResultsPublishList","SpecialityKindsNO");
			/// <summary>
			/// 
			/// </summary>
			public readonly static Field ExamLevel = new Field("ExamLevel","TB_Exam_ResultsPublishList","ExamLevel");
			/// <summary>
			/// 
			/// </summary>
			public readonly static Field CreatTime = new Field("CreatTime","TB_Exam_ResultsPublishList","CreatTime");
			/// <summary>
			/// 
			/// </summary>
			public readonly static Field SignUpStudentsSpecialityID = new Field("SignUpStudentsSpecialityID","TB_Exam_ResultsPublishList","SignUpStudentsSpecialityID");
			/// <summary>
			/// 
			/// </summary>
			public readonly static Field AllowExamID = new Field("AllowExamID","TB_Exam_ResultsPublishList","AllowExamID");
			/// <summary>
			/// 
			/// </summary>
			public readonly static Field IsIn = new Field("IsIn","TB_Exam_ResultsPublishList","IsIn");
			/// <summary>
			/// 
			/// </summary>
			public readonly static Field IsOut = new Field("IsOut","TB_Exam_ResultsPublishList","IsOut");
		}
		#endregion


	}
}

